﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true"
    CodeFile="WIN09_1S.aspx.cs" Inherits="IFRS_WIN09_1S" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard" style="padding-bottom: 5px;">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsMenu,ConditionSearch%>" />
                </legend>
                <div align="center" class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblTransactionDate" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox CssClass="datepicker" ID="txtTransactionDate" runat="server" SkinID="dateText"
                                onblur="datebox_onblur( this, event );"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblACCOUNTNO" runat="server" Text="<%$Resources:ifrsField,ACCOUNTNO%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtACCOUNTNO" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                        </div>
                    </div>
                     <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblCostCenter" runat="server" Text="<%$Resources:ifrsField,CostCenter%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtCostCenter" SkinID="L_TextBoxWithNoColor" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                           
                        </div>
                        <div class="colinfo_single">
                             <asp:CheckBox ID="cbDebtAdjust" runat="server" Text="<%$Resources:ifrsField,LIST_OF_RESTRUCTURING%>" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblIsConfirmed" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlIsConfirmed" runat="server" SkinID="SS_DropDownListWithNoColor" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                        </div>
                        <div class="colinfo_single">
                        </div>
                    </div>
                </div>
                <div class="colbtn">
                    <div>
                        <div>
                             <asp:Button ID="btnSEARCH" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SEARCH%>"
                                OnClick="btnSEARCH_Click" />&nbsp;
                            <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>"
                                OnClick="btnCLEAR_Click" />
                            &nbsp;
                            <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>"
                                OnClick="btnCANCEL_Click" />
                            &nbsp;
                        </div>
                    </div>
                </div>
            </fieldset>
            <div>
                <div class="colbtnAdd">
                    <p>
                        <asp:Button ID="btnAdd" runat="server" SkinID="NormalButton" 
                            Text="<%$Resources:ifrsButton,ADD%>" onclick="btnAdd_Click"
                            />
                    </p>
                    <br />
                    <div class="content_grid">
                        <asp:GridView ID="gvSearch" runat="server" CssClass="CSSTableGenerator" AllowSorting="true"  OnRowDataBound="gvSearch_RowDataBound"  onsorting="gvSearch_Sorting"
                            AutoGenerateColumns="false" AllowPaging="true" PageSize="10" >
                            <Columns>
                                <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                    <HeaderTemplate>
                                        <asp:Label ID="lblgvSEQ" runat="server" Text="<%$Resources:ifrsField,CENTER_SEQ%>" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Container.DataItemIndex+1%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="SorPorMorCreditID" Visible="false" />
                                <asp:TemplateField SortExpression="TransactionDate" ItemStyle-HorizontalAlign="Center"
                                    HeaderText="<%$Resources:ifrsField,DATE_TRANSACTION%>">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvTransactionDate" runat="server" Text='<%# Eval("TransactionDate", "{0:dd/MM/yyyy}") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="AccountNo" ItemStyle-HorizontalAlign="Center"
                                    HeaderText="<%$Resources:ifrsField,ACCOUNTNO%>">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvAccountNo" runat="server" Text='<%# Eval("AccountNo") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="GLAccount" HeaderText="<%$Resources:ifrsField,GLAccount%>" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvGLAccount" runat="server" Text='<%# Eval("GLAccount") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="COST_CENTER_NM" HeaderText="<%$Resources:ifrsField,CostCenter%>" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvCOST_CENTER_NM" runat="server" Text='<%# Eval("COST_CENTER_NM") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="ContractStartDate" HeaderText="<%$Resources:ifrsField,STARTDATE_CONTRACT_LOAN%>"
                                    ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvContractStartDate" runat="server" Text='<%# Eval("ContractStartDate", "{0:dd/MM/yyyy}") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField SortExpression="ContractEndDate" HeaderText="<%$Resources:ifrsField,ENDDATE_CONTRACT_LOAN%>"
                                    ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvContractEndDate" runat="server" Text='<%# Eval("ContractEndDate", "{0:dd/MM/yyyy}") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField SortExpression="CreditLevelName" HeaderText="<%$Resources:ifrsField,CREDIT_LEVEL%>" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvCreditLevelName" runat="server" Text='<%# Eval("CreditLevelName") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="UnpaidInterest" HeaderText="<%$Resources:ifrsField,CREDIT_LEVEL%>" ItemStyle-HorizontalAlign="Right">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvUnpaidInterest" runat="server" Text='<%# Eval("UnpaidInterest","{0:N2}") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField SortExpression="UnpaidAmount" HeaderText="<%$Resources:ifrsField,TOTAL_DEBT_OUTSTANDING%>" ItemStyle-HorizontalAlign="Right">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvUnpaidAmount" runat="server" Text='<%# Eval("UnpaidAmount","{0:N2}") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="IsConfirmed" HeaderText="<%$Resources:ifrsField,STATUS%>"
                                    ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgvIsConfirmed" runat="server" Text='<%# Eval("IsConfirmed") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkCopy" AlternateText="<%$Resources:ifrsMenu,Copy%>" runat="server"
                                            OnClick="lnkCopyItems_Click">
                                            <asp:Image ID="imgAdd" runat="server" AlternateText="<%$Resources:ifrsMenu,Copy%>"
                                                ToolTip="<%$Resources:ifrsMenu,Copy%>" CssClass="CommandIcon" ImageUrl="~/Content/img/copy.png" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server"
                                            OnClick="lnkEditItems_Click">
                                            <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>"
                                                ToolTip="<%$Resources:ifrsMenu,Edit%>" CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server"
                                            OnClick="lnkDeleteItems_Click">
                                            <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>"
                                                ToolTip="<%$Resources:ifrsMenu,Edit%>" CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server"
                                            OnClick="lnkViewItems_Click">
                                            <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>"
                                                ToolTip="<%$Resources:ifrsMenu,Edit%>" CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                    <div class="content_paging">
                        <asp:Repeater ID="repPager" runat="server">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                                    Enabled='<%# Eval("Enabled") %>' ></asp:LinkButton>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>
